<?php

/**
 * Description of PrimaryNavigationCss.
 *
 * @author Ian Clarence <ian.clarence@gmail.com>
 */
final class PrimaryNavigationCss extends ViewResources {
    
    /**
     * The constructor. 
     */    
    public function __construct() {
        parent::__construct();
    }
    
    /**
     * Loading the CSS rules, and returning as an array.
     * 
     * @param array $viewFields
     * @return array
     */
    protected function resources($viewFields = array()) {        
        
        $this->fields[] = ViewCssRule::cssInit(
            'div#primary_navigation_article',
            array(
                'position' => 'relative',
                'background-color' => GREEN3,
                'width' => '100%',
                'height' => '50px',
                'top' => '150px',
                'left' => '0px'
            )
        );

        $this->fields[] = ViewCssRule::cssInit(
            'div#primary_navigation_article ul',
            array(                        
                'list-style-type' => 'none',
                'height' => '50px',
                'margin' => '0px',
                'padding' => '0px'
            )
        );

        $this->fields[] = ViewCssRule::cssInit(
            'div#primary_navigation_article ul li',
            array(                        
                'float' => 'left',
                'background-color' => GREEN3
            )
        );

        $this->fields[] = ViewCssRule::cssInit(
            'div#primary_navigation_article ul li a',
            array(                       
                'padding-right' => '20px',
                'padding-left' => '20px',
                'display' => 'block',
                'line-height' => '50px',
                'font-size' => '13px',
                'font-weight' => 'bold',
                'text-transform' => 'uppercase',
                'color' => '#FFFFFF'
            )
        );

        $this->fields[] = ViewCssRule::cssInit(
            'div#primary_navigation_article ul li a:hover',
            array(
                'color' => StylesheetView::HOVER_LINK_COLOUR
            )
        );
        
        return $this->fields;
        
    }
    
}